package leetcode.D100.T49;

import util.ListUtil;

import java.util.List;

public class M49 {
    public static void main(String[] args) {
        List<String> stringList = ListUtil.parseStringList("[\"eat\",\"tea\",\"tan\",\"ate\",\"nat\",\"bat\"]");
        String[] strs = new String[stringList.size()];
        stringList.toArray(strs);
        List<List<String>> results = new Solution().groupAnagrams(strs);
        for (List<String> result : results) {
            for (String s : result) {
                System.out.print(s + " ");
            }
            System.out.println();
        }
    }
}
